







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Removes all the items in collection from the bag. Items not
present in the bag are ignored.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public int RemoveMany( IEnumerable<T> collection ) |
Visual Basic (Declaration) |
---|
Public Function RemoveMany ( _ collection As IEnumerable(Of T) _ ) As Integer |
Visual C++ |
---|
public: int RemoveMany ( IEnumerable<T>^ collection ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
A collection of items to remove from the bag.
Return Value
The number of items removed from the bag.
Remarks
Equality between items is determined by the comparison instance or delegate used to create the bag.
Removing the collection takes time O(M log N), where N is the number of items in the bag, and M is the number of items in collection.
Exceptions
Exception | Condition |
---|---|
System..::ArgumentNullException | collection is null. |
See Also
OrderedBag<(Of <T>)> Class
Wintellect.PowerCollections Namespace